package com.door.erp.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.door.erp.enums.BaseInfoStatus;

@Entity
@Table(name = "outputstatus", catalog = "door")
public class OutputStatus implements Serializable {

	private static final long serialVersionUID = -71724827321414804L;

	private Long id; 
	
	private String description ;
	
	private BaseInfoStatus status;
	
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "description", nullable=false)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Column(name = "status", nullable=false, columnDefinition="int default 0")
	public BaseInfoStatus getStatus() {
		return status;
	}

	public void setStatus(BaseInfoStatus status) {
		this.status = status;
	}
	
	
}
